home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 121
/
FreelogMagazineJuilletAout2014-No121.iso
/
Outils
/
Adobe-Air
/
adobe-air_13.exe
/
[0]
/
setup.swf
/
scripts
/
mx
/
resources
/
ResourceManager.as
< prev
next >
Wrap
Text File
|
2014-03-27
|
900b
|
40 lines
package mx.resources
{
import mx.core.Singleton;
import mx.core.mx_internal;
use namespace mx_internal;
public class ResourceManager
{
private static var implClassDependency:ResourceManagerImpl;
private static var instance:IResourceManager;
mx_internal static const VERSION:String = "3.0.0.0";
public function ResourceManager()
{
super();
}
public static function getInstance() : IResourceManager
{
if(!instance)
{
try
{
instance = IResourceManager(Singleton.getInstance("mx.resources::IResourceManager"));
}
catch(e:Error)
{
instance = new ResourceManagerImpl();
}
}
return instance;
}
}
}